@import url("base.css");
@import url("normalize.css");



@media (min-width:1200px) {
    /* .box {
        padding: 0 10%;
    } */

    .center {
        width: 1200px;
    }
}

body {
    background-color: #f6f6f6;
}

/**** 默认衣册汇样式（暗黑）*/
/* 盒子样式设置 */
.box {
    font-family: 'WenQuanYi Micro Hei';
    background-color: #F6F6F6;
    width: 100%;
}

.center {
    width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 3.6px;

    .show_content {
        display: none;
        height: 24px;
        width: 24px;
        padding: 0 3.6px;
    }
}

.adver::before {
    content: 'ADVERTISEMENT';
    width: 100%;
    display: block;
    text-align: center;
    height: 15px;
    font-size: 12px;
}

/**** */
/* 头部样式设置 */
.header {
    width: 100%;
    background-color: #fff;
    color: #268ff8;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 6px 0;
    z-index: 999;
    border-bottom: 1px solid #ede6;

    .center {
        height: 100%;
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        box-sizing: border-box;

        .left {
            height: 100%;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;

            img.Icon {
                height: 24px;
                margin-right: 12px;
            }

            ul {
                display: flex;
                flex-direction: row;
                align-items: center;

                li {
                    padding: 12px 15.6px;
                    font-size: 16px;
                    position: relative;
                    box-sizing: border-box;

                    .line {
                        display: none;
                        height: 4px;
                        width: 100%;
                        position: absolute;
                        bottom: 0;
                        left: 0;
                        background-color: #268ff8;
                        border-radius: 4px;
                    }

                    &:hover {
                        background-color: #F6F6F6;

                        .line {
                            display: block;
                        }
                    }
                }
            }
        }

        .right {
            .login {
                margin-left: 30px;
            }
        }

        .search {
            height: 2.3rem;
            width: 100%;
            position: relative;
            display: none;
            margin: 12px 33.3%;
            border-radius: 10px;
            // background-color: #242424;

            input[type="search"] {
                background-color: #FFF;
                padding: 0;
                outline: none;
                border: none;
                width: 100%;
                height: 28px;
                line-height: 28px;
                font-size: 0.7rem;
                border-radius: 15px;
                color: #000;
                padding-left: 0.8rem;
                border: 1px solid #FF7C59;
                box-sizing: border-box;
            }

            button {
                position: absolute;
                right: 20px;
                top: 8px;
                height: 12px;
                width: 12px;
                border: none;
                border-radius: 10px;
                color: #FF0000;
                background-color: rgba(0, 0, 0, .0);
            }
        }
    }
}

.header_bottom {
    height: 30px;
    width: 100%;
    background-color: #fff;
}

/**** */
/* 底部样式设置 */
.bottom {
    padding: 48px 0 24px;
    width: 100%;
    font-size: 12px;
    font-family: 'WenQuanYi Micro Hei';
    background-color: #FFF;

    .center {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        .top {
            display: flex;
            justify-content: center;
            border-top: 1px solid #E5E5E5;
            padding: 12px 0;
            font-size: 16px;
            flex-wrap: wrap;

            a {
                display: flex;
                flex-wrap: nowrap !important;
                color: #268ff8;
            }

            a::after {
                content: '|';
                padding: 0 9.6px;
                color: #268ff8;
            }

            a:last-child::after {
                content: '';
            }

        }

        .bot {
            display: flex;
            justify-content: center;
            padding: 0 26.4px;
            font-size: 13.8px;
            color: #000;
        }
    }

}

/**** */
/* 主体内容样式 */
.content {
    background-color: #F6F6F6;

    .center {
        flex-direction: column;

        .card_one {
            width: 100%;
            margin-top: 36px;

            .card_header {
                // width: 100%;
                margin: 10px 20px;


                h2 {
                    font-size: 30px;
                    font-weight: 500;
                }
            }

            .card_list {
                width: 100%;
                padding: 9px 12px;
                min-height: 220px;
                overflow: hidden;
                position: relative;
                background-color: #fff;
                box-sizing: border-box;

                &>div {
                    position: absolute;
                    top: 50%;
                    transform: translateY(-50%);
                    z-index: 99;
                    height: 100%;
                    width: 50px;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    background-color: rgba(255, 255, 255, 0.7);

                    &:hover {
                        opacity: 0.5;
                    }

                    &.left {
                        left: 0;
                    }

                    &.right {
                        right: 0;
                    }
                }

                ul {
                    width: 100%;
                    display: flex;
                    flex-direction: row;
                    justify-content: space-between;
                    overflow-x: auto;

                    // 隐藏滚动条但保持可滚动功能
                    &::-webkit-scrollbar {
                        display: none; // Chrome, Safari, Edge
                    }

                    -ms-overflow-style: none; // IE, Edge
                    scrollbar-width: none; // Firefox

                    .card_item {
                        min-width: 220px;
                        position: relative;
                        display: flex;
                        flex-direction: column;
                        margin: 5px;
                        box-sizing: border-box;

                        img {
                            width: 100%;
                            max-height: 104px;
                            object-fit: cover;
                        }

                        p {
                            width: 100%;
                            font-size: 16px;
                            text-align: center;
                            margin-top: 5px;
                            display: -webkit-box;
                            -webkit-box-orient: vertical;
                            -webkit-line-clamp: 3;
                            overflow: hidden;
                            overflow-x: hidden;
                            overflow-y: hidden;
                            text-overflow: ellipsis;
                        }

                        &:hover {
                            transform: scale(1.05);
                            transition: transform 0.3s linear;
                            border: 1px solid rgba(67, 130, 189);
                            border-radius: 10px;
                            box-sizing: border-box;
                            box-shadow: 0 0 12px rgba(12, 96, 175, 0.5);
                        }
                    }
                }
            }
        }

        .zore {
            display: block;
            width: 100%;
            min-height: 100px;
            background-color: #F6F6F6;
            box-sizing: border-box;
        }
    }
}


//**** 当屏幕小于900px时的显示*//

@media screen and (max-width: 900px) {
    html {
        font-size: 12px;
    }

    .box {
        .center {
            width: 100%;
            box-sizing: border-box;
        }

        .header {
            width: 100%;
            padding: 15px 0;

            .center {
                width: 100%;
                display: flex;
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
                position: relative;
                box-sizing: border-box;

                .show_content {
                    display: block;
                }

                .left {
                    box-sizing: border-box;

                    .header_list {
                        display: none;
                        flex-direction: column;
                        align-items: center;
                        justify-content: center;
                        position: absolute;
                        top: 100%;
                        left: 0;
                        width: 100%;
                        background-color: #FAFAFA;
                        z-index: 999;
                        color: #268ff8;

                        li {
                            background-color: #FAFAFA;
                            border-top: 1px solid #f1efef;
                        }

                        &:hover {
                            .line {
                                background-color: #fafafa;
                            }
                        }
                    }
                }


                .header_right {
                    position: absolute;
                    top: 0;
                    right: 0;
                }
            }
        }

        .content {
            width: 100%;

            .card_one {
                .card_list {
                    box-sizing: border-box;

                    &>div {
                        display: none;
                    }

                    ul {
                        flex-direction: column;
                    }
                }
            }
        }
    }
}


/* 登录框样式 */
.modal {
    display: block;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    text-align: center;
    margin: 10% auto;
    padding: 20px 30px;
    padding-bottom: 10px;
    border: 1px solid #888;
    width: 350px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);

    a {
        color: #268ff8;
    }

    h2 {
        padding: 20px 0;
    }

    /* 分隔线样式 */
    .divider {
        position: relative;
        text-align: center;
        margin: 15px 0;
    }

    .divider::before,
    .divider::after {
        content: "";
        position: absolute;
        top: 50%;
        width: 45%;
        height: 1px;
        background-color: #ddd;
    }

    .divider::before {
        left: 0;
    }

    .divider::after {
        right: 0;
    }

    .divider span {
        background-color: #fff;
        padding: 0 10px;
        color: #666;
        font-size: 14px;
    }

    .the-check {
        display: flex;
        flex-direction: row;
        margin-top: 20px;

        #check {
            padding: 0;
            margin: 0;
            height: 25px;
            width: 25px;
            // margin-right: 20px;
        }

        label {
            margin-left: 10px;
            text-align: left;
        }
    }

}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.login-btn {
    width: 100%;
    padding: 10px;
    background-color: #4267b2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.login-btn:hover {
    background-color: #365899;
}